package com.pandora.common.util;

/**
 * @author developer
 */
public class Constants {
    public static final String HTML_TERMINAL = "pandoracredith5";

    /**
     * access token timestamp gap, default (+,-) 5 mins in ms
     */
    public static final long ACCESS_TOKEN_TS_GAP = 5 * 60 * 1000000;

    /**
     * RSA签名用
     */
    public static final String SIGN_ALGORITHMS = "SHA1WithRSA";
    public static final String SIGN_RSA = "RSA";
    public static final String SIGN_CHARSET = "UTF-8";
    public static final String PRIVATE_KEY = "MIICXgIBAAKBgQCpsc7oYUVV72S91uYN9NarO8a4gpFJiIVYInObwPh2Dpv9fjbE7zjQSbGMrZUqztCUD6ovpXCAQRogr5lPo2QqCBhodOy9MDq0ZYyHNZqSfub+JL03go0olJmWmB3ur86+BwwaGOfooP45F/Ckpnngc7pLgV+LpeK3BzurBrnknwIDAQABAoGBAIk06bVfIO7Q98W/gpf6RbCCTrVVbR/lsNuIT626I6thOKOIb8RgILHZRCQZHilUu7VbzSFlRUeOXA/dq7qGxC8eRnGfCGKjCFleDEtN5qb3Id1UuM3l+U7I5hWMRSd9TVGVYDqnmnYDv4o5DGJFp6aSy2k4ENdrSHNcoNehJRBxAkEA3lr4uPSF2QUvZZ/b0P1kXgz7FLWF8TXfQC0fe56kyQypDX66BdIzZw2CPlsxVUgPNq886MHNQW7j6swFsEbLEwJBAMNe/6VF5uBtRzVAdpaRWXbew3aTB3rypCw8AdboGvrDv8yV1F6eVVF9Pc8HnNXgVbvq6SrVf0JMFLZTMvdexcUCQAbmp+WFoUnVAV2UEoxv8NeCa6B+6cNMursRK3L4v4CF5hFHJ5rapUHDh5FL30IYVHCMC8XljetD98rnvh10dQUCQQCbuEBzbv/Sqccz/qmG4Vs5j9yjyhUQPg304+9jZ6T5csSRQGsA75p5VSXKufqbzi8HlPk8FudT5Ggt2qqo2HUxAkEArM+ISx6n79sbL5+AUbfe/7V/t2gfsfs3OQHk4iA2d2AXGS/z9aWlQ+s/VobfNS46nU2Kz75kbNLZwdp7tjCCdA==";
    public static final String PRIVATE_KEY_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HO6sGueSfAgMBAAECgYEAiTTptV8g7tD3xb+Cl/pFsIJOtVVtH+Ww24hPrbojq2E4o4hvxGAgsdlEJBkeKVS7tVvNIWVFR45cD92ruobELx5GcZ8IYqMIWV4MS03mpvch3VS4zeX5TsjmFYxFJ31NUZVgOqeadgO/ijkMYkWnppLLaTgQ12tIc1yg16ElEHECQQDeWvi49IXZBS9ln9vQ/WReDPsUtYXxNd9ALR97nqTJDKkNfroF0jNnDYI+WzFVSA82rzzowc1BbuPqzAWwRssTAkEAw17/pUXm4G1HNUB2lpFZdt7DdpMHevKkLDwB1uga+sO/zJXUXp5VUX09zwec1eBVu+rpKtV/QkwUtlMy917FxQJABuan5YWhSdUBXZQSjG/w14JroH7pw0y6uxErcvi/gIXmEUcnmtqlQcOHkUvfQhhUcIwLxeWN60P3yue+HXR1BQJBAJu4QHNu/9KpxzP+qYbhWzmP3KPKFRA+DfTj72NnpPlyxJFAawDvmnlVJcq5+pvOLweU+TwW51PkaC3aqqjYdTECQQCsz4hLHqfv2xsvn4BRt97/tX+3aB+x+zc5AeTiIDZ3YBcZL/P1paVD6z9Wht81LjqdTYrPvmRs0tnB2nu2MIJ0";
    public static final String PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpsc7oYUVV72S91uYN9NarO8a4gpFJiIVYInObwPh2Dpv9fjbE7zjQSbGMrZUqztCUD6ovpXCAQRogr5lPo2QqCBhodOy9MDq0ZYyHNZqSfub+JL03go0olJmWmB3ur86+BwwaGOfooP45F/Ckpnngc7pLgV+LpeK3BzurBrnknwIDAQAB";

    /**
     * redis pool
     */
    public static final String CONFIG_REDIS_URL = "CONFIG_REDIS_URL";
    public static final String BUSINESS_REDIS_URL = "BUSINESS_REDIS_URL";
    public static final String API_CACHING_REDIS_URL = "API_CACHING_REDIS_URL";
    public static final String QUEUE_REDIS_URL = "QUEUE_REDIS_URL";

    /**
     * redis
     */
    public static final String PC_BUSINESS_SMS = "pc_business:%s:ts";

    public static final String APP_ACCESS_TOKEN_KEY = "app_id_access_token_%s";
    public static final String ACCESS_TOKEN_KEY = "access_token_%s";

    public static final String MOBILE_AUTHORIZATION_TOKEN_KEY = "mobile_authorization_token_%s";
    public static final String AUTHORIZATION_TOKEN_KEY = "authorization_token_%s";

    public static final String TERMINAL_ACCESS_TOKEN_KEY = "terminal_access_token_%s";
    public static final String ACCESS_TOKEN_TERMINAL_KEY = "access_token_terminal_%s";

    public static final String CERTIFICATION_RATE_KEY = "certification_rate_%s";

    public static final String MOBILE_CAPTCHA_KEY = "mobile_captcha_%s";
    public static final String MOBILE_SMS_COUNT_KEY = "mobile_sms_count_%s";

    public static final String CUS_ID_MOBILE_KEY = "cus_id_mobile_%s";
    public static final String MOBILE_CUS_ID_KEY = "mobile_cus_id_%s";

    /**
     * expiration
     */
    public static final int ACCESS_TOKEN_EXPIRATION = 3 * 60 * 60;
    public static final int API_CACHING_TIMEOUT = 30 * 60;
    public static final int TERMINAL_TOKEN_EXPIRATION = 3 * 60 * 60;

    public static final int AUTHORIZATION_TOKEN_EXPIRATION = 8 * 60 * 60;
    public static final int REGISTER_TOKEN_EXPIRATION = 8 * 60 * 60;

    public static final int MOBILE_CUSTOMER_ID_TIME_OUT = 12 * 60 * 60;

    /**
     * sms
     */
    public static final String SMS_USER = "N9711284";
    public static final String SMS_PASSWORD = "woavp9cJq";
    /**
     * public static final String SMS_HOST = "http://smssh1.253.com/msg/send";
     */
    public static final String SMS_HOST = "smssh1.253.com";
    public static final String SMS_METHOD = "/msg/send";
    public static final String SMS_SIGN = "【磐多拉信用】";
    public static final String SMS_TEMPLATE = "您的验证码是: %s, 短信验证码5分钟内有效。";

    /**
     * cert
     */
    public static final String CERTIFICATION_HOST = "api.t.dpandora.cn";
    public static final String CERTIFICATION_METHOD = "/bank_card/certification";
    public static final String QA_AUTHORIZATION_TOKEN = "14-558c18abeb1e68d7846b83c4b6497127";

    /**
     * sms code
     */
    public static final int EXPIRATION_TIME = 2 * 24 * 60 * 60;
    public static final int SMS_EXPIRATION_TIME = 60;

    /**
     * timeout
     */
    public static final int EXPIRATION_TIME_OUT = 60 * 60;

    /**
     * certification
     */
    public static final int CERTIFICATION_RATE_LIMIT = 3;

    /**
     * redis timeout
     */
    public static final long REDIS_TIME_OUT = 12 * 60 * 60;

    /**
     * 注册
     */
    public static final int SMS_CODE_TYPE_REGISTER = 1;
    /**
     * 找回密码
     */
    public static final int SMS_CODE_TYPE_FIND_PASSWORD = 2;

    public static final int STATUS_DISABLED = 0;
    public static final int STATUS_ENABLED = 1;

    public static final int CUSTOMER_STATUS_TEMPORARY = 0;
    public static final int CUSTOMER_STATUS_REGISTERED = 1;
    public static final int CUSTOMER_STATUS_BOUND = 2;


    public static final int CREDIT_TYPES_LOANS = 1;
    public static final int CREDIT_TYPES_CREDITS = 2;
    public static final int CREDIT_TYPES_BANKS = 3;
    public static final int CREDIT_TYPES_CREDIT_CARDS = 4;
    public static final int CREDIT_TYPES_LOANS_TYPE = 5;
    public static final int CREDIT_TYPES_LOANS_CONTENT = 6;

    public static final int ANNOUNCEMENT_TYPES_VALID = 1;
    public static final int ANNOUNCEMENT_TYPES_INVALID = 0;

    public static final int CREDIT_STATUS_IS_HOT = 0;
    public static final int CREDIT_STATUS_INVALID = 0;
    public static final int CREDIT_STATUS_VALID = 1;
    public static final int CREDIT_STATUS_RECOMMEND = 0;

    public static final int REPORT_TYPE_OP = 0;
    public static final int REPORT_TYPE_TR = 1;
    public static final int REPORT_TYPE_EC = 2;
    public static final int REPORT_TYPE_ED = 3;
    public static final int REPORT_TYPE_WM = 4;
    public static final int REPORT_TYPE_HF = 5;
    public static final int REPORT_TYPE_DR = 6;
    public static final int REPORT_TYPE_BF = 7;
    public static final int REPORT_TYPE_C4 = 8;

    public static final String SERVICE_TYPES_OP = "OP";
    public static final String SERVICE_TYPES_TR = "TR";
    public static final String SERVICE_TYPES_EC = "EC";
    public static final String SERVICE_TYPES_ED = "ED";
    public static final String SERVICE_TYPES_WM = "WM";
    public static final String SERVICE_TYPES_HF = "HF";
    public static final String SERVICE_TYPES_DR = "DR";
    public static final String SERVICE_TYPES_BF = "BF";

    public static final String RETURN_TYPE_BANK = "bank";
    public static final String RETURN_TYPE_CREDIT_CARD = "credit_card";
    public static final String RETURN_TYPE_LOAN = "loan";
    public static final String RETURN_TYPE_BANNER = "banner";
    public static final String RETURN_TYPE_CREDIT = "credit";
    public static final String RETURN_TYPE_NEWS = "news";
    public static final String RETURN_TYPE_ABOUT = "about";
    public static final String RETURN_TYPE_ACTIVITY = "activity";
    public static final String RETURN_TYPE_HISTORY = "history";
    public static final String RETURN_TYPE_MESSAGE = "message";
    public static final String RETURN_TYPE_ANNOUNCEMENT = "announcement";
    public static final String RETURN_TYPE_SHARING = "sharing";
    public static final String RETURN_TYPE_LOAN_TYPE = "loan_type";
    public static final String RETURN_TYPE_ACTIONS = "actions";

    public static final int META_DATA_TYPE_PROTOCAL = 1;
    public static final int META_DATA_TYPE_ABOUT = 11;
    public static final int META_DATA_TYPE_AGREE = 12;

    public static final int MESSAGE_TYPE_READ = 1;
    public static final int MESSAGE_TYPE_UNREAD = 0;

    public static final int ITEM_STATUS_VALID = 1;
    public static final int ITEM_STATUS_UNVALID = 0;

    public static final int VERSION_STATUS_CHECKING = 1;
    public static final int VERSION_STATUS_ONLINE = 2;

    public static final int UPGRADE_FORCE = 2;
    public static final int UPGRADE_RECOMMEND = 1;
    public static final int UPGRADE_NO = 0;

    public static final int LOGIN_YES = 1;
    public static final int LOGIN_NO = 0;

    public static final int MESSAGE_SEND_TYPE_NOT_READ = 0;
    public static final int MESSAGE_SEND_TYPE_SEND = 1;
    public static final int MESSAGE_SEND_TYPE_SENT = 2;
    public static final int MESSAGE_SEND_TYPE_TEST = 3;

    /**
     * task
     */
    public static final String TASK_WRITE_TRACK_KEY = "queue:track";

    public static final int DEFAULT_PAGE_LENGTH = 50;
    public static final int PAGE_LENGTH_DEFAULT = 10;

    public static final int BANNER_TYPE_HOME_BANNER = 1;
    public static final int BANNER_TYPE_CALCULATOR_BANNER = 21;
    public static final int BANNER_TYPE_LOAN_BANNER = 22;

    public static final String SEQ_NO_GENERATORS_TS = "ts";
    public static final String SEQ_NO_GENERATORS_DIGEST = "digest";

    /**
     * h5 report
     */
    public static final int H5_REPORT_DEFAULT_PAGE_LENGTH = 10;
    //public static final String H5_REPORT_HOST = "static.pc.dpandora.cn";
    public static final String H5_REPORT_URL = "/transition.html";
    
    public static final String[] PROVINCIES = { "福建省", "浙江省", "上海市", "天津市", "重庆市", "北京市", "黑龙江省", "辽宁省",
            "青海省", "广东省", "海南省", "江西省", "江苏省", "山东省", "陕西省", "河北省",
            "山西省", "四川省", "湖南省", "湖北省", "云南省", "贵州省", "河南省", "吉林省", "安徽省" };

    public static final String[] LAST_NAMES = {"赵", "钱", "孙", "李", "周", "吴", "郑", "王", "冯", "陈", "褚", "卫", "蒋", "沈", "韩", "杨", "朱",
            "秦", "尤", "许", "何", "吕", "施", "张", "孔", "曹", "严", "华", "金", "魏", "陶", "姜", "戚", "谢",
            "邹", "喻", "柏", "水", "窦", "章", "云", "苏", "潘", "葛", "奚", "范", "彭", "郎", "鲁", "韦", "昌",
            "马", "苗", "凤", "花", "方", "俞", "任", "袁", "柳", "酆", "鲍", "史", "唐", "费", "廉", "岑", "薛",
            "雷", "贺", "倪", "汤", "滕", "殷", "罗", "毕", "郝", "邬", "安", "常", "乐", "于", "时", "傅", "皮",
            "卞", "齐", "康", "伍", "余", "元", "卜", "顾", "孟", "平", "黄", "和", "穆", "萧", "尹", "姚", "邵",
            "堪", "汪", "祁", "毛", "禹", "狄", "米", "贝", "巩", "臧", "计", "伏", "成", "戴", "谈", "宋", "茅",
            "庞", "熊", "纪", "舒", "屈", "项", "祝", "董", "梁"};

    public static final String[] GENDER = {"先生", "女士"};
}
